import style from 'styled-components'
import logoPic from '../../statics/logo.png'

export const HeaderWrapper = style.div`
    height: 56px
    border-bottom:1px solid #f0f0f0
    position: relative
`;

export const Logo = style.a.attrs({
    href:"/"
})`
    display: block;
    width: 100px;
    height: 56px;
    background: url(${logoPic});
    background-size: contain;
    position: absolute;
    left: 0;
    top: 0
    
`;
export const Nav = style.div`
    width: 960px;
    height: 56px;
    margin: 0 auto;
`;

export const NavItem = style.div`
    line-height: 56px;
    padding: 0 15px;
    font-size: 17px;
    color:#333;
    &.left{
        float: left
    }
    &.right{
        float: right;
        color: #969696;
    }
    &.activ{
        color: #ea6f5a
    }
`;

export const NavSearch = style.input.attrs({
    placeholder: "搜索"
}) `
    width: 160px;
    height: 38px;
    padding: 0 15px;
    margin-top: 9px;
    margin-left: 20px;
    background: #eee;
    box-sizing: border-box;
    border: none;
    outline: none;
    border-radius: 19px
    font-size: 14px;
    &::placeholder{
        color: #999
    }
`;

export const Addition = style.div`
    position: absolute;
    right: 0;
    top: 0;
    height:56px;
`;

export const Button = style.div`
    float: right;
    margin-top:9px;
    padding:0 20px;
    line-height: 38px;
    border-radius: 19px;
    border: 1px solid #ec6149
`;